/**
 * 
 */
package fr.toto.menuitem;


import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JMenuItem;

import fr.toto.constantes.Constantes;

/**
 * @author tshepo
 * 
 */
public class CloseMenuItem extends JMenuItem implements Constantes {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7149256317530020529L;

	/**
	 * @throws HeadlessException
	 */
	public CloseMenuItem() {
		super(MESSAGES.getString("ExitMI"));

		this.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent e) {
				System.exit(0);
			}
		});
	}

	/**
	 * @param label
	 * @throws HeadlessException
	 */
	public CloseMenuItem(String label) {
		this();
	}


}
